import request from "@/utils/request";


export interface VideoModel {
  cover: string;
  duration: number;
  persistentId: string;
  size: number;
  originUrl: string;
  sortNum: number;
  free: number;
  title: string;
  url: string;
  hlsUrl: string;
}

export interface ScreenModel{
  name:string,
  id:string
}

export interface ProductionScreenModel{
  choises:ScreenModel[],
  label:string,
  name:string,
  style:string,
  valueType:string
}

const access_token = '439b9104-1848-477a-aad9-0902069119d6'

export default {
  //获取推荐列表
  getVideoList() {
    return request.get(`/moment/moments/rec/default?access_token=${access_token}&column=recommend&pageSize=20&pageNum=0&localCache=0
    `);
  },
  //获取轮播图
  getCarousel() {
    return request.get(`/promotion/ads/search/findByPosition?access_token=${access_token}&position=pc_mainpage`)
  },
  //获取作品列表筛选
  getProductionScreen(){
    return request.get<any,ProductionScreenModel[]>(`/moment/properties/filter/original?access_token=${access_token}`)
  },
  //获取作品列表:综合榜
  getProductionSyntheses(){
    return request.post(`/moment/moments/collect/original/integrated?access_token=${access_token}&pageSize=20&pageNum=0&column=original`)
  },
  //获取动态页面列表
  getDynamic(){
    return request.get(`/moment/moments/frontDynamic/default?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&pageSize=20&column=frontDynamic`)
  },
  

};
